Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge branch '1.3' of ezsystems/ezplatform-kernel into 4.5 #326

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

ezrobot
Copy link

@ezrobot ezrobot commented Jan 31, 2024

Cross merge PR of ezsystems/ezplatform-kernel#400

Seems with newer Flysystem it works OOTB.
We're already catching FlysystemException which is parent for CorruptedPathDetected. So, no changes are needed for load method.
Applied changes to exists method with a requested change of logging CorruptedPathDetected ocurrence.


Testing needed some more creativity, because for 4.x we don't check exists explicitly. It's a side effect of calling \Ibexa\Core\FieldType\Image\AliasCleanerInterface::removeAliases. Integration test setup however has limited IO configuration, relying on \Ibexa\Core\FieldType\Image\NullAliasCleaner so the issue detected by QA wasn't showing in the test.
Instead got from the Legacy setup factory container proper implementation of IOService used by the production code and manually called exists.


Bonus: dropped unused and malformed Service definition: ibexa.core.io.metadata_handler.flysystem. It's neither abstract nor would work when instantiated, because of incorrect argument list (visible only when explicitly trying to use it). Looks like a left-over after Flysystem upgrade.


Requires further QA

…eting content

For more details see https://issues.ibexa.co/browse/IBX-7485 and ezsystems/ezplatform-kernel#400

Key changes:

* Skipped files with corrupted filenames when loading and deleting

* [Tests] Added integration test
@alongosz
Copy link
Member

alongosz commented Feb 1, 2024

Status update: the bug still exists on 4.x, so investigating.

src/lib/IO/IOMetadataHandler/Flysystem.php Outdated Show resolved Hide resolved
@konradoboza konradoboza requested a review from a team February 1, 2024 13:41
@ciastektk ciastektk requested a review from a team February 1, 2024 13:47
Copy link

sonarqubecloud bot commented Feb 1, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tomaszszopinski
Copy link

QA approved on IbexaDXP 4.5 commerce.

@alongosz alongosz merged commit 087ad78 into 4.5 Feb 1, 2024
20 checks passed
@alongosz alongosz deleted the temp_1.3_to_4.5 branch February 1, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants